package com.xiaoluo.web.form;

import java.util.List;

/**
 * Project : XL-CD
 * Package : com.xiaoluo.web.form
 * Created by Willian.
 * Date  : 2016/1/26 23:58.
 */
public class TreeNodeEx {
    /**
     * {
     id          : "string" // required
     parent      : "string" // required
     text        : "string" // node text
     icon        : "string" // string for custom
     state       : {
     opened    : boolean  // is the node open
     disabled  : boolean  // is the node disabled
     selected  : boolean  // is the node selected
     },
     li_attr     : {}  // attributes for the generated LI node
     a_attr      : {}  // attributes for the generated A node
     }
     */

    private String id;
    private String parent;
    private String text;

    private String value;

    private boolean dir;

    private String type;

    private boolean children;

    public String getType() {
        return dir==true?"default":"file";
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isChildren() {
        return children;
    }

    public void setChildren(boolean children) {
        this.children = children;
    }

    public boolean isDir() {
        return dir;
    }

    public void setDir(boolean dir) {
        this.dir = dir;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParent() {
        return parent;
    }

    public void setParent(String parent) {
        this.parent = parent;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

}
